package com.yonyou.cyxdms.sysmanage.client.service.login;

import com.yonyou.cyxdms.sysmanage.client.feign.SysmanageDataCommonClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DealerBrandServiceImpl implements DealerBrandService{

    @Autowired
    SysmanageDataCommonClient sysmanageDataCommonClient;
    /**
     *  获取品牌列表
     *
     * @param ownerCode
     * @return java.util.List<java.lang.Long>
     * @author dengqiang
     * @since 2019/8/16
     */
    @Override
    public List<Long> queryBrandIdListByOwnerCode(String ownerCode) {
        return sysmanageDataCommonClient.queryBrandIdListByOwnerCode(ownerCode).getData();
    }

    /**
     * 获取品牌ID列表
     *
     * @param
     * @return java.util.List<java.lang.Long>
     * @author dengqiang
     * @since 2019/8/19
     */
    @Override
    public List<Long> queryBrandIdList() {
        return sysmanageDataCommonClient.queryBrandIdList().getData();
    }

    /**
     * 获取车系ID列表
     *
     * @author 李贺
     * @since 2019/12/11
     */
    @Override
    public List<Long> querySeriesIdList() {
        return sysmanageDataCommonClient.querySeriesIdList().getData();
    }
}
